package com.six.order.controller.api;

import com.six.core.vo.Result;
import com.six.order.dao.OrderMapper;
import com.six.order.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.crypto.interfaces.PBEKey;

/**
 * @author: WangPeng
 * @createTime: 2023/03/06 18:40
 * @description:
 * @version: v1.0
 */
@RestController
@RequestMapping("/api/order/")
public class ApiOrderController {
    @Autowired
    private OrderService orderService;

    @PostMapping("/AddComment")
    public Integer addComment(String orderid, String goodsid){
        return orderService.addComment(orderid,goodsid);
    }
}
